.class Lcom/nemustech/regina/ReginaLauncher$2;
.super Ljava/lang/Object;
.source "ReginaLauncher.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ReginaLauncher;->set2DViewVisibility(ZLjava/lang/Runnable;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ReginaLauncher;

.field final synthetic val$r:Ljava/lang/Runnable;

.field final synthetic val$visibility:Z


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaLauncher;Ljava/lang/Runnable;Z)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 490
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncher$2;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    iput-object p2, p0, Lcom/nemustech/regina/ReginaLauncher$2;->val$r:Ljava/lang/Runnable;

    iput-boolean p3, p0, Lcom/nemustech/regina/ReginaLauncher$2;->val$visibility:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 492
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$2;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v0

    .line 493
    .local v0, mode:I
    const-string v1, "ReginaLauncher"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Current view location x:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher$2;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v3}, Lcom/nemustech/regina/ReginaLauncher;->access$200(Lcom/nemustech/regina/ReginaLauncher;)[Lcom/nemustech/regina/WorkspaceViewGroup;

    move-result-object v3

    aget-object v3, v3, v0

    invoke-virtual {v3}, Lcom/nemustech/regina/WorkspaceViewGroup;->getLeft()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " y:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher$2;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v3}, Lcom/nemustech/regina/ReginaLauncher;->access$200(Lcom/nemustech/regina/ReginaLauncher;)[Lcom/nemustech/regina/WorkspaceViewGroup;

    move-result-object v3

    aget-object v3, v3, v0

    invoke-virtual {v3}, Lcom/nemustech/regina/WorkspaceViewGroup;->getTop()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 495
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$2;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaLauncher;->access$200(Lcom/nemustech/regina/ReginaLauncher;)[Lcom/nemustech/regina/WorkspaceViewGroup;

    move-result-object v1

    aget-object v1, v1, v0

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher$2;->val$r:Ljava/lang/Runnable;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/WorkspaceViewGroup;->setPostScrollActor(Ljava/lang/Runnable;)V

    .line 496
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$2;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaLauncher;->access$200(Lcom/nemustech/regina/ReginaLauncher;)[Lcom/nemustech/regina/WorkspaceViewGroup;

    move-result-object v1

    aget-object v1, v1, v0

    iget-boolean v2, p0, Lcom/nemustech/regina/ReginaLauncher$2;->val$visibility:Z

    if-eqz v2, :cond_0

    move v2, v4

    :goto_0
    invoke-virtual {v1, v4, v2}, Lcom/nemustech/regina/WorkspaceViewGroup;->scrollTo(II)V

    .line 500
    return-void

    .line 496
    :cond_0
    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncher$2;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v2}, Lcom/nemustech/regina/ReginaLauncher;->access$200(Lcom/nemustech/regina/ReginaLauncher;)[Lcom/nemustech/regina/WorkspaceViewGroup;

    move-result-object v2

    aget-object v2, v2, v0

    invoke-virtual {v2}, Lcom/nemustech/regina/WorkspaceViewGroup;->getMeasuredHeight()I

    move-result v2

    neg-int v2, v2

    goto :goto_0
.end method
